//
//  BSTimeLine.m
//  Spriter_forCocs2d
//
//  Created by Yang Bean on 13/4/15.
//
//

#import "BSTimeLine.h"
#import "BSObject.h"
#import "BSBone.h"
@implementation BSTimeLine
- (id)init
{
    self = [super init];
    if (self) {
        m_objs = [[NSMutableDictionary alloc] init];
        m_bones = [[NSMutableDictionary alloc] init];
    }
    return self;
}
- (void)dealloc
{
    [m_objs release];
    [super dealloc];
}
- (void)addObject:(BSObject *)obj inKey:(NSString *)key
{
    [m_objs setObject:obj forKey:key];
}
- (void)addBone:(BSBone*)bone inKey:(NSString*)key;
{
    [m_bones setObject:bone forKey:key];
}
- (NSDictionary*)objs{ return m_objs; }
- (NSDictionary*)bones{ return m_bones; }
- (void)setTimeLineId:(int)tid
{
    m_timelineId = tid;
}
- (int)timelineId{ return m_timelineId; }
- (NSString *)description
{
    return [NSString stringWithFormat:@"objs = %@, bones = %@",
            m_objs, m_bones];
}
@end
